package com.yfp.client.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 礼包
 *
 * @CreateDate: 2024/9/27 16:00
 * @UpdateUser:
 * @UpdateDate: 2024/9/27 16:00
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@TableName(value ="mar_coupon_pack")
@Data
@Tag(name = "优惠券礼包实体")
public class MarCouponPack implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "礼包名称")
    private String packName;

    @Schema(description = "发放上限")
    private Integer count;

    @Schema(description = "分享标题")
    private String shareTitle;

    @Schema(description = "分享图片")
    private String shareImg;

    @Schema(description = "活动背景图")
    private String backgroundImg;

    @Schema(description = "按钮名称")
    private String buttonName;

    @Schema(description = "是否弹窗1是0否")
    private Integer popup;

    @Schema(description = "弹窗背景图")
    private String popupUrl;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "创建人")
    private Long createUserId;

    @Schema(description = "营销ID")
    private Long marketingId;

    @Schema(description = "礼包失效条件1全部  0任意一张")
    private Integer failureCondition;

    @Schema(description = "剩余数量")
    private Integer surplusCount;

    @Schema(description = "状态:[0:删除,1:进行中,2:已失效]")
    private Integer status;

    private List<MarCoupon> marCouponList;

    private List<MarCouponPackDetails> marCouponPackDetails;
}